﻿using ServiceLog;
using System.Windows;
using WeChatService;

namespace MainService
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            MainLog.LogAction = Log;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Service.OpenService();
        }

        private void Log(string mes)
        {
            this.logTextBox.AppendText(mes + "\r\n");
        }
    }
}